// pages/customer/component/customerFollowList.js
const util = require("../../../utils/util.js");
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        customerId: {
            type: Number,
            value: -1
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        list: [
            {
                date: '2021-12-02',
                linkUser: '张三',
                mobile: '13908907890',
                action: '电话、微信、见面送礼',
                recommendedResources: '楼宇、智能框',
                purpose: '测试目的',
                achievement: '成果',
                urlList: [
                    {
                        url: 'https://img.yzcdn.cn/vant/leaf.jpg',
                        isImage: true
                    },
                    {
                        url: 'http://iph.href.lu/60x60?text=default',
                        isImage: true
                    },
                ]
            },
            {
                date: '2021-12-02',
                linkUser: '张三',
                mobile: '13908907890',
                action: '电话、微信、见面送礼',
                recommendedResources: '楼宇、智能框',
                purpose: '测试目的',
                achievement: '成果',
                urlList: [
                    {
                        url: 'https://img.yzcdn.cn/vant/leaf.jpg',
                        isImage: true
                    },
                    {
                        url: 'http://iph.href.lu/60x60?text=default',
                        isImage: true
                    },
                    {
                        url: 'https://img.yzcdn.cn/vant/leaf.jpg',
                        isImage: true
                    },
                    {
                        url: 'http://iph.href.lu/60x60?text=default',
                        isImage: true
                    }
                ]
            }
        ],
        flag: false
    },

    /**
     * 组件的方法列表
     */
    methods: {
        getList() {

            this.setData({
                list: this.data.list.concat([
                    {
                        date: '2021-12-02',
                        linkUser: '张三',
                        mobile: '13908907890',
                        action: '电话、微信、见面送礼',
                        recommendedResources: '楼宇、智能框',
                        purpose: '测试目的',
                        achievement: '成果',
                        urlList: [
                            {
                                url: 'https://img.yzcdn.cn/vant/leaf.jpg',
                                isImage: true
                            },
                            {
                                url: 'http://iph.href.lu/60x60?text=default',
                                isImage: true
                            },
                        ]
                    },
                    {
                        date: '2021-12-02',
                        linkUser: '张三',
                        mobile: '13908907890',
                        action: '电话、微信、见面送礼',
                        recommendedResources: '楼宇、智能框',
                        purpose: '测试目的',
                        achievement: '成果',
                        urlList: [
                            {
                                url: 'https://img.yzcdn.cn/vant/leaf.jpg',
                                isImage: true
                            },
                            {
                                url: 'http://iph.href.lu/60x60?text=default',
                                isImage: true
                            },
                            {
                                url: 'https://img.yzcdn.cn/vant/leaf.jpg',
                                isImage: true
                            },
                            {
                                url: 'http://iph.href.lu/60x60?text=default',
                                isImage: true
                            }
                        ]
                    }
                ])
            })
        },
    },
})
